﻿Partial Public Class Window
    ''' <summary>
    ''' Represents the data associated with processing a user's key input.
    ''' </summary>
    Public Class KeyProcessingEventArgs
        Inherits EventArgs
        ''' <summary>
        ''' Gets the key pressed by the user.
        ''' </summary>
        Public ReadOnly Key As ConsoleKeyInfo
        ''' <summary>
        ''' Set this property to true during an event handler to prevent the default processing of the key.
        ''' </summary>
        ''' <returns></returns>
        Public Property SuppressDefaultProcessing As Boolean = False
        Protected Friend Sub New(keyinfo As ConsoleKeyInfo)
            Key = keyinfo
        End Sub
    End Class
End Class